package com.zhs.demoutil.demo2;

import java.util.ArrayList;
import java.util.List;

class PricingStrategyFactory {
    public PricingStrategy createPricingStrategy(int lowerBound) {
        List<PriceTier> tiers = new ArrayList<>();
        tiers.add(new PriceTier(5000, 0));
        tiers.add(new PriceTier(8000, 3));
        tiers.add(new PriceTier(17000, 10));
        tiers.add(new PriceTier(30000, 20));
        tiers.add(new PriceTier(40000, 25));
        tiers.add(new PriceTier(60000, 30));
        tiers.add(new PriceTier(85000, 35));
        tiers.add(new PriceTier(Integer.MAX_VALUE, 45));

        return new TieredPricingStrategy(tiers);
    }
}